  /****************************************** 
  * 设置周期
  *******************************************/
  
  //周期
  var periodYjq = "yjq";
  var periodLpq = "lpq";
  var periodPlq = "plq";
  var periodHtq = "htq";

  function getPeriodBackGroundColor(xAxisDateStr){
        var color;

        if(isYjq(xAxisDateStr))
            color = yjqBackgroundColor;
        else if(isLpq(xAxisDateStr))
            color = lpqBackgroundColor;
        else if(isPlq(xAxisDateStr))
            color = plqBackgroundColor;
        else if(isHtq(xAxisDateStr))
            color = htqBackgroundColor;
        else
            color = unknownBackgroundColor;

        return color;
  }
   
    function isYjq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodYjq;
    }
    
    function isLpq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodLpq;
    }
    
    function isPlq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodPlq;
    }
    
    function isHtq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodHtq;
    }

